﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using BLL.Theme;

namespace BLL.Formation
{
    public class FormationBO
    {
        public int Identifiant { get; set; }
        public string Reference { get; set; }
        public string Libelle { get; set; }
        public int NombreJours { get; set; }
        public double Prix { get; set; }
        public string Description { get; set; }
        public ThemeBO Theme { get; set; }

        private string _DisplayTheme;
        public string DisplayTheme
        {
            get
            {
                if (Theme != null)
                    _DisplayTheme = Theme.Libelle;
                return _DisplayTheme;
            }
            set
            {
                _DisplayTheme = value;
            }
        }

        private string _FormationName;
        public string FormationName
        {
            get
            {
                _FormationName = Libelle;
                return _FormationName;
            }
            set
            {
                _FormationName = value;
            }
        }
    }
}
